<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <title>Information</title>
</head>
<body>
<h2>用户信息</h2>
<%
    String username = (String) session.getAttribute("username");
    String major = (String) session.getAttribute("major");
    String grade = (String) session.getAttribute("grade");
    String classNum = (String) session.getAttribute("class");
    String contact = (String) session.getAttribute("contact");
%>
<p>姓名: <%= username %></p>
<p>专业: <%= major %></p>
<p>年级: <%= grade %></p>
<p>班级: <%= classNum %></p>
<p>联系方式: <%= contact %></p>
</body>
</html>